package model.entities;

import javax.persistence.*;

@Entity
@Table(name="GSI")
public class GSI {
	@Id
	@Column(name="WI")
	private Long id;
	
	@OneToOne(cascade={CascadeType.ALL,CascadeType.REMOVE})
	@JoinColumn(name="Measure_FK")
	private Measure measure;
	
	@OneToOne(cascade={CascadeType.ALL,CascadeType.REMOVE})
	@JoinColumn(name="LandXML_FK")	
	private LandXML landXML;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Measure getMeasure() {
		return measure;
	}

	public void setMeasure(Measure measure) {
		this.measure = measure;
	}

	public LandXML getLandXML() {
		return landXML;
	}

	public void setLandXML(LandXML landXML) {
		this.landXML = landXML;
	}
}
